package com.zixuan.sina.service;



import com.zixuan.sina.entity.Permission;
import com.zixuan.sina.utils.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lemon
 * @since 2023-10-12
 */
public interface RoleService {
    public Result getRoleList(String roleName);

    List<Long> getPermissionListByRoleId(String roleId);

    int  addPermission(String roleId, List<Long> permissionIds);

    Long getRoleById(Long userId);

    int assign(Long userId, Long roleId);
}
